findFolder
Returns the path to a special Mac OS folder.
public static File findFolder (MRJOSType folderType) throws FileNotFoundException;
folderType
- The folder you are looking for. For the list of constants you can specify in this parameter, see "Special Folder Constants" (page 32).
- method result
- The file object that references the folder you specified.
DISCUSSION
The Mac OS has several special folders that applications often need to access (for example, the Preferences folder); this method searches the startup volume for the desired folder and returns the path. If the folder cannot be found, the method throwsFileNotFoundException
.SEE ALSO
The "File Manager" chapter in Inside Macintosh: Files.